import request from '@/utils/request'



export function getCustomerMessageList(params) {
    return request({
        url: '/med-chat/chat/customer/list',
        method: 'get',
        params: {
            customerSessionId: params.sessionId // 匹配后端接收的参数名
        }
    })
}

export function endSession(sessionId) {
    return request({
        url: '/med-chat/chat/session/end',
        method: 'post',
        params: {
            sessionId: sessionId
        }
    })
}

export function createSession() {
    return request({
        url: '/med-chat/chat/session/create',
        method: 'post'
    })
}
